package com.nmgydy.admin.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.nmgydy.beans.ListBean;
import com.nmgydy.beans.ResultBean;
import com.nmgydy.model.*;
import com.nmgydy.util.BpmnUtil;
import com.nmgydy.util.Functions;
import com.nmgydy.util.HibernateDao;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.*;

@Controller
@RequestMapping("/")
public class DemoController {

	@Resource
	private HibernateDao hibernateDao;

	@RequestMapping(value = "test")
	@ResponseBody
	public String list(HttpServletRequest request, HttpServletResponse response, Model model) {

		return "test";
	}

}
